package com.chapp.base;

import java.io.Serializable;

public class Venue implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String name;
	private Location location;
	private String url;
	private String thumbnailURL;
	private String phonenumber;

	public Venue() {
	}

	@Override
	public String toString() {
		return "VENUE: " + name + " " + location;
	}

	public Venue(Venue venue) {
		super();
		this.name = venue.name;
		this.id = venue.id;
		this.location = venue.location;
		this.url = venue.url;
		this.thumbnailURL = venue.thumbnailURL;
		this.phonenumber = venue.phonenumber;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setThumbnailURL(String thumbnailURL) {
		this.thumbnailURL = thumbnailURL;
	}

	public String getThumbnailURL() {
		return thumbnailURL;
	}

	public void setPhonenumber(String phonenumber) {
		this.phonenumber = phonenumber;
	}

	public String getPhonenumber() {
		return phonenumber;
	}

	public Venue(String name, String id, Location location, String url,
			String thumbnailURL, String phonenumber) {
		this.name = name;
		this.id = id;
		this.location = location;
		this.url = url;
		this.thumbnailURL = thumbnailURL;
		this.phonenumber = phonenumber;
	}

	public Venue(String name, String id) {
		this.name = name;
		this.id = id;
	}

	public Venue copy() {
		return new Venue(this);
	}

	public void clean() {
		this.name = null;
		this.id = null;
		this.location = null;
		this.url = null;
		this.thumbnailURL = null;
		this.phonenumber = null;

	}

	// <venue>
	// <id>8816229</id>
	// <name>Arena</name>
	// <location>
	// <url>http://www.last.fm/venue/8816229</url>
	// </venue>

}
